﻿@model Forum.Models.LoginModel

@{
    ViewBag.Title = "LogIn";
}

@section Register
{
    <section id="login">
        <li>@Html.ActionLink("Register", "Register", "Authentication")</li>
    </section>
}


@using (Html.BeginForm("LogIn", "Authentication"))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>LoginModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Username)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Username)
            @Html.ValidationMessageFor(model => model.Username)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <p>
            <input type="submit" value="Log in" />
        </p>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
